feat: MAUI integration hooks and refactor for 0.4.1 nuget#425
Merged
Conversation
* main: feat: Optional Jet Compose (#402) feat: Android Incremental Image Diff compression (#390) chore: add CLAUDE.md (#398) chore: release main (#400) fix: correct react native session replay build step (#399) chore: release main (#396) fix: Android span e2e tests (#397) fix: improve network response capture (#379) # Conflicts: # sdk/@launchdarkly/mobile-dotnet/.vscode/tasks.json
* main: chore: release main (#401)
(cherry picked from commit 9901600)
* andrey/hooks: comment identify stuff fat working working can launch
* main: chore: release main (#419) feat: Use C and NEON for hashing (Optimization) 100x on Pixel 8 (#415) chore: release main (#418) feat: Android SR use Jpeg 0.3 quality (#417) chore: release main (#411) feat: CPU utilization optimization in image diff calculations (#414) fix: reset nodeIds during fullsnapshot (#412) chore: Android benchmark screen of SR data pipelines on iOS Raw Frames (#410) feat: Android Observability hook proxy for MAUI (#409) feat: ruby observability plugin (#360) # Conflicts: # sdk/@launchdarkly/mobile-dotnet/android/native/LDObserve/src/main/java/com/example/LDObserve/ObservabilityBridge.kt # sdk/@launchdarkly/mobile-dotnet/macios/native/LDObserve/Sources/ObservabilityBridge.swift # sdk/@launchdarkly/mobile-dotnet/observability/LDAPI/LDObserve.cs # sdk/@launchdarkly/mobile-dotnet/observability/LDObservability.Fat.csproj # sdk/@launchdarkly/mobile-dotnet/observability/LDObservability.csproj # sdk/@launchdarkly/mobile-dotnet/observability/bridge/LDObserve.cs # sdk/@launchdarkly/mobile-dotnet/observability/bridge/NativeHookProxy.cs # sdk/@launchdarkly/mobile-dotnet/observability/observe/api/LDObserve.cs # sdk/@launchdarkly/mobile-dotnet/observability/observe/plugin/ObservabilityHook.cs # sdk/@launchdarkly/mobile-dotnet/observability/observe/plugin/ObservabilityPlugin.cs # sdk/@launchdarkly/mobile-dotnet/observability/replay/plugin/SessionReplayHook.cs # sdk/@launchdarkly/mobile-dotnet/observability/replay/plugin/SessionReplayPlugin.cs # sdk/@launchdarkly/mobile-dotnet/sample/MauiProgram.cs
* main: feat: mobile-dotnet support init attributes (#420) # Conflicts: # sdk/@launchdarkly/mobile-dotnet/observability/LDObservability.Fat.csproj # sdk/@launchdarkly/mobile-dotnet/observability/LDObservability.csproj # sdk/@launchdarkly/mobile-dotnet/observability/bridge/DictionaryTypeConverters.cs
(cherry picked from commit a56660e)
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Vadman97
approved these changes
Mar 26, 2026
…servability-sdk into andrey/recordlog-android * 'andrey/recordlog-android' of github.com:launchdarkly/observability-sdk:
Merged
Vadman97
pushed a commit
that referenced
this pull request
Mar 26, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>launchdarkly-observability-python: 1.2.0</summary> ## [1.2.0](launchdarkly-observability-python-1.1.0...launchdarkly-observability-python-1.2.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) </details> <details><summary>launchdarkly-observability-android: 0.32.0</summary> ## [0.32.0](launchdarkly-observability-android-0.31.0...launchdarkly-observability-android-0.32.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) * MAUI integration hooks and refactor for 0.4.1 nuget ([#425](#425)) ([33f6d6c](33f6d6c)) </details> <details><summary>go: 1.1.0</summary> ## [1.1.0](go/v1.0.0...go/v1.1.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) </details> <details><summary>launchdarkly-observability-dotnet: 1.1.0</summary> ## [1.1.0](launchdarkly-observability-dotnet-1.0.0...launchdarkly-observability-dotnet-1.1.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) </details> <details><summary>observability: 1.1.0</summary> ## [1.1.0](observability-1.0.3...observability-1.1.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) ### Dependencies * The following workspace dependencies were updated * dependencies * highlight.run bumped to 9.28.0 </details> <details><summary>observability-node: 1.1.0</summary> ## [1.1.0](observability-node-1.0.1...observability-node-1.1.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) </details> <details><summary>observability-react-native: 0.8.0</summary> ## [0.8.0](observability-react-native-0.7.1...observability-react-native-0.8.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) </details> <details><summary>session-replay: 1.1.0</summary> ## [1.1.0](session-replay-1.0.3...session-replay-1.1.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) ### Dependencies * The following workspace dependencies were updated * dependencies * highlight.run bumped to 9.28.0 </details> <details><summary>session-replay-react-native: 0.3.0</summary> ## [0.3.0](session-replay-react-native-0.2.2...session-replay-react-native-0.3.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/observability-react-native bumped to 0.8.0 </details> <details><summary>highlight.run: 9.28.0</summary> ## [9.28.0](highlight.run-9.27.1...highlight.run-9.28.0) (2026-03-26) ### Features * **@launchdarkly/session-replay-react-native:** use cocoapods for native session replay ([#434](#434)) ([41988e1](41988e1)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: this is a Release Please version/changelog bump across packages with no functional code changes beyond version constants and manifests. > > **Overview** > Cuts a new coordinated release by bumping versions across Go, web/Node/React-Native, Android, .NET, Python, Session Replay, and `highlight.run`, updating `.release-please-manifest.json` and each package’s `CHANGELOG.md`. > > Also updates package metadata/version declarations (e.g., `package.json`, `pyproject.toml`, `gradle.properties`, `.csproj`, and Go `InstrumentationVersion`) and notes the `highlight.run` dependency bump to `9.28.0`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 26333ff. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Refactors the Android Observability SDK architecture to align with the iOS/Swift and MAUI integration patterns, decoupling the
Observabilityplugin fromSessionReplayso each can function independently.Architectural Changes
SessionReplayServicecan depend onObservability, butObservabilityno longer depends onSessionReplay. RemovedInstrumentationContributor,InstrumentationContributorManager, and theLDExtendedInstrumentation-based registration flow.ReplayInstrumentation→SessionReplayService,ReplayControl→SessionReplayServicing.RoutingLogRecordProcessorand the per-instrumentation log routing mechanism fromInstrumentationManager, since it was only used by session replay and no longer needed.InstrumentationManagernow captures the OTelSessionManagervia a lightweight bridgeAndroidInstrumentationand exposes it throughObservabilityClient→ObservabilityContext.sessionManager, matching the Swift pattern.Session Replay Changes
SessionReplay.register()directly createsSessionReplayServiceusingLDObserve.context, wires it toLDReplay, and sets the hook delegate.SessionReplay.onPluginsReady()callssessionReplayService.initialize()afterSessionManageris available.SessionReplayHookno longer holds a reference to theSessionReplayplugin. Instead, it uses a@Volatiledelegate of typeSessionReplayServicingand extracts context keys from SDK types before delegating.afterIdentifymoved to service layer: Context key extraction andLDContextbuilding now happen inSessionReplayService.afterIdentify()andSessionReplayHook.afterIdentify()respectively, using aMap<String, String>interface for cross-platform compatibility.SessionReplayHookProxy: JVM adapter for the C#/MAUI bridge that accepts simple JVM types and delegates toSessionReplayServicing.RRWebEventGenerator.generateWakeUpEvents()andSessionReplayExporter.wakeUpEvents()to re-trigger player playback after session resumption with a reload event and synthetic mouse interactions.RRWebEventGeneratornow accepts atitleparameter used in reload custom events, derived from the application name.New Utilities
AttributeConverter: Converts untypedMap<String, Any?>dictionaries (from bridge layers like .NET MAUI) into OTelAttributes, with support for nested map flattening via dot-separated keys and typed list handling.Note
Medium Risk
Medium risk due to refactoring plugin wiring and session replay export behavior (new wake-up payloads) plus removal of custom instrumentation/log-routing hooks, which could affect initialization order and telemetry/replay delivery.
Overview
Refactors the Android Observability + Session Replay integration to remove the
LDExtendedInstrumentationcontributor flow and instead initialize Session Replay directly from theSessionReplayplugin, whileObservabilitynow captures and shares the OTelSessionManagerviaLDObserve.context.Session Replay is renamed/reshaped into
SessionReplayService/SessionReplayServicing, with identify handling routed through a delegate-basedSessionReplayHookplus a new MAUI-friendlySessionReplayHookProxy. Replay exporting now propagates an apptitle, emits a one-time “wake-up” payload (reload + synthetic interactions) after pushing events, and setsclient_idtoobservability-androidin the replay session init call.Adds bridge-friendly APIs for MAUI:
LDObserve.recordLog(message, severityNumber, attributesMap)/recordError(message, cause)backed by a newAttributeConverter(flattening nested maps and typing lists). Updates e2e UI copy and benchmark generator construction, and simplifies/updates tests to match the new architecture.Written by Cursor Bugbot for commit cae622e. This will update automatically on new commits. Configure here.